<?php /* Smarty version 2.6.18, created on 2016-12-22 22:50:14
         compiled from external/external.list.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get">	
                <div class="box-header with-border">
                    <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">外聘教师档案列表</p>
                    <a href="tp/external_in.xls" class="btn btn-success btn-sm" style="float:right; color:#fff; margin-left:10px;">模 版</a>
                    <a href="index.php?a=external.outdata&staff_position=<?php echo $this->_tpl_vars['staff_positon']; ?>
&staff_education=<?php echo $this->_tpl_vars['staff_education']; ?>
&staff_name=<?php echo $this->_tpl_vars['staff_name']; ?>
" target="_blank" class="btn btn-warning btn-sm" style="float:right; color:#fff; margin-left:10px;">导 出</a>
					<a href="index.php?a=external.in" class="btn btn-success btn-sm" style="float:right; color:#fff; margin-left:10px;">导 入</a>
					<a href="index.php?a=external.add" class="btn btn-primary btn-sm" style="float:right; color:#fff;">新 增</a>
                </div>
                <div class="box-body">
                    <div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; ">
							   姓名：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
							   <input type="text" class="form-control" value="<?php echo $this->_tpl_vars['staff_name']; ?>
"  name="staff_name">
						  </div>						  
				    </div>
				    <div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   学历：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
							  <select class="form-control" name="staff_education">
                              <option value="">全部</option>
					      <?php $_from = $this->_tpl_vars['education_ini']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                <option value="<?php echo $this->_tpl_vars['key']; ?>
" <?php if ($this->_tpl_vars['staff_education'] == $this->_tpl_vars['key']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['value']; ?>
</option>
                          <?php endforeach; endif; unset($_from); ?>
                              </select> 
						  </div> 
				    </div>
					<div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; margin:0;">
							   职称：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
							  <select class="form-control" name="staff_position">
                              <option value="">全部</option>
						 <?php $_from = $this->_tpl_vars['position_ini']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                <option value="<?php echo $this->_tpl_vars['key']; ?>
" <?php if ($this->_tpl_vars['staff_positon'] == $this->_tpl_vars['key']): ?>selected<?php endif; ?>> <?php echo $this->_tpl_vars['value']; ?>
</option>
                          <?php endforeach; endif; unset($_from); ?>
                              </select> 
						  </div> 
				    </div>
					
					<div class="col-md-2 col-xs-12">
						<input type="hidden" name="a" value="external.list">
					   <button type="submit" class="btn btn-warning">查 询</button>
					</div>
                    <div style="clear:both; height:2px;"></div>
                    <div style="width:100%; overflow-x:scroll">
                     <table class="table table-bordered table-striped"  id="mytable">
                                <thead>
                                    <tr>
                                        <td>编号</td> 
                                        <td>姓名</td> 
                                        <td>性别</td> 
                                        <td>出生日期</td> 
                                        <td>学历</td> 
                                        <td>职称</td> 
                                        <td>参加工作时间</td> 
                                        <td>到校工作时间</td> 
                                        <td>在职状态</td>
										<td>人员性质</td>
										<td width="260">操作</td>
                                    </tr>	
                                </thead>

                                <tbody>
                               <?php $_from = $this->_tpl_vars['staff_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                    <tr>
                                        <td><?php echo $this->_tpl_vars['value']['staff_number']; ?>
</td>
                                        <td><?php echo $this->_tpl_vars['value']['staff_name']; ?>
</td> 
                                        <td><?php echo $this->_tpl_vars['value']['staff_sex']; ?>
</td> 
                                        <td><?php echo $this->_tpl_vars['value']['staff_birth']; ?>
</td> 
                                        <td><?php echo $this->_tpl_vars['value']['staff_education']; ?>
</td> 
                                        <td><?php echo $this->_tpl_vars['value']['staff_position']; ?>
</td> 
                                        <td><?php echo $this->_tpl_vars['value']['start_time']; ?>
</td> 
                                        <td><?php echo $this->_tpl_vars['value']['end_time']; ?>
</td> 
                                        <td><?php echo $this->_tpl_vars['value']['staff_sign']; ?>
</td>
										<td><?php echo $this->_tpl_vars['value']['staff_nature']; ?>
</td>
                                           <td> 
                                        	  <a href="index.php?a=external.update&staff_id=<?php echo $this->_tpl_vars['value']['staff_id']; ?>
" class="btn btn-warning btn-xs"> 修  改 </a>
											  <a href="index.php?a=change.add&staff_id=<?php echo $this->_tpl_vars['value']['staff_id']; ?>
&personnel_type=2" class="btn btn-success btn-xs"> 人事变动</a>
											  <a href="index.php?a=teacher.teachlist&staff_id=<?php echo $this->_tpl_vars['value']['staff_id']; ?>
&teacher_type=2" class="btn btn-info btn-xs"> 教学信息</a>
											  <a href="index.php?a=external.del&staff_id=<?php echo $this->_tpl_vars['value']['staff_id']; ?>
" class="btn btn-danger btn-xs" onclick="if(confirm('警告！确认删除信息?')==false)return false;">删除</a>
                                         </td>
                                    </tr>	
                                 <?php endforeach; endif; unset($_from); ?>
                           
                               </tbody>
                        </table>
                       
                        </div>
                        
				   </div><!--box-body -->
                   <div class="box-footer">
                       <?php echo $this->_tpl_vars['page']; ?>

                   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
 
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>